package com.ruoyi.mes.material.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 原料库存对象 smes_material_stock
 *
 * @author simpsense
 * @date 2020-12-14
 */
public class SmesMaterialStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长列 */
    private Long rowId;

    /** 原料编号 */
    @Excel(name = "原料编号")
    private String materialNo;

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getWareLocatorName() {
        return wareLocatorName;
    }

    public void setWareLocatorName(String wareLocatorName) {
        this.wareLocatorName = wareLocatorName;
    }

    public String getWareName() {
        return wareName;
    }

    public void setWareName(String wareName) {
        this.wareName = wareName;
    }

    @Excel(name = "原料名")
    private String materialName;

    @Excel(name = "原料类别")
    private String materialCategoryName;

    @Excel(name = "原料规格")
    private String materialSpec;

    public String getMaterialCategoryName() {
        return materialCategoryName;
    }

    public void setMaterialCategoryName(String materialCategoryName) {
        this.materialCategoryName = materialCategoryName;
    }

    public String getMaterialSpec() {
        return materialSpec;
    }

    public void setMaterialSpec(String materialSpec) {
        this.materialSpec = materialSpec;
    }

    public String getMaterialUnit() {
        return materialUnit;
    }

    public void setMaterialUnit(String materialUnit) {
        this.materialUnit = materialUnit;
    }

    @Excel(name = "原料单位")
    private String materialUnit;

    /** 库位编号 */
    @Excel(name = "库位编号")
    private String wareLocatorNo;
    @Excel(name = "库位名")
    private String wareLocatorName;
    @Excel(name = "仓库名")
    private String wareName;

    public String getWareNo() {
        return wareNo;
    }

    public void setWareNo(String wareNo) {
        this.wareNo = wareNo;
    }

    private String wareNo;
    /** 批次 */
    @Excel(name = "批次")
    private String batchNo;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal num;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 条形码 */
    @Excel(name = "条形码")
    private String barcode;

    public void setRowId(Long rowId)
    {
        this.rowId = rowId;
    }

    public Long getRowId()
    {
        return rowId;
    }
    public void setMaterialNo(String materialNo)
    {
        this.materialNo = materialNo;
    }

    public String getMaterialNo()
    {
        return materialNo;
    }
    public void setWareLocatorNo(String wareLocatorNo)
    {
        this.wareLocatorNo = wareLocatorNo;
    }

    public String getWareLocatorNo()
    {
        return wareLocatorNo;
    }
    public void setBatchNo(String batchNo)
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo()
    {
        return batchNo;
    }
    public void setNum(BigDecimal num)
    {
        this.num = num;
    }

    public BigDecimal getNum()
    {
        return num;
    }
    public void setWeight(BigDecimal weight)
    {
        this.weight = weight;
    }

    public BigDecimal getWeight()
    {
        return weight;
    }
    public void setBarcode(String barcode)
    {
        this.barcode = barcode;
    }

    public String getBarcode()
    {
        return barcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("rowId", getRowId())
                .append("materialNo", getMaterialNo())
                .append("wareLocatorNo", getWareLocatorNo())
                .append("batchNo", getBatchNo())
                .append("num", getNum())
                .append("weight", getWeight())
                .append("barcode", getBarcode())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}